<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>宠物信息</title>
</head>
<body>
	<center>

		<form action="idList" method="get">
			品种: <select name="breed">
				<option value="0">--请选择--</option>
				<option value="1">狗</option>
				<option value="2">猫</option>
				<option value="3">鸟</option>
				<option value="4">兔</option>
			</select> <input type="submit" value="查询">
		</form>
		<a href="addPet.jsp">新增宠物</a>
		<table border="1px">
			<tr>
				<th>宠物昵称</th>
				<th>出生日期</th>
				<th>性别</th>
			</tr>
			<c:forEach items="${requestScope.list}" var="pet">
				<tr>
					<td>${pet.name}</td>
					<td>${pet.birthday}</td>
					<td><c:if test="${pet.sex ==1}">雄</c:if> <c:if
							test="${pet.sex ==2}">雌</c:if></td>
				</tr>
			</c:forEach>
		</table>
	</center>
</body>
</html>